package com.fromfuture.xuhuidoc.android.BroadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Author：何送军
 * creation time：2017/9/5
 **/
public class MyConsultRoomBroadcastReceiver {
    static Haspatin_interface haspatin_interface;

    public MyConsultRoomBroadcastReceiver(Haspatin_interface haspatin_interface) {
        this.haspatin_interface = haspatin_interface;
    }
    public static class haspatin extends BroadcastReceiver {

        @Override
        public void onReceive(Context context, Intent intent) {
            String msg=intent.getStringExtra("haspatin");
            Log.d("收到消息与否",""+msg);
            if (msg!=null){
                haspatin_interface.haspatin(msg);
            }
        }
    }

    public static interface Haspatin_interface{
        void haspatin(String info);
    }



}
